package com.cxm.qyyz.core.http;

import com.cxm.qyyz.app.Constants;
import com.cxm.qyyz.entity.ServerUrlEntity;
import com.cxm.qyyz.entity.response.LoginEntity;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;

public interface DataApi {

    @POST(Constants.LOGIN_PWD)
    Observable<BaseResponse<LoginEntity>> loginByPwd(@Body Map<String, String> map, @Header("ua") String ua, @Header("deviceid") String deviceid);


    @GET(Constants.GET_SERVER_URL)
    Observable<BaseResponse<ServerUrlEntity>> getServerUrl();
}
